package com.project.psc.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 供应商实体
 */
@TableName("t_supplier")
@Data
public class SupplierBean{
    /**
     * 供应商id
     */
    @TableId(value = "pk_id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户名
     */
    @TableField("s_userName")
    private String userName;
    /**
     * 密码
     */
    @TableField("s_password")
    private String password;
    /**
     * 供应商名称
     */
    @TableField("s_supplierName")
    private String supplierName;
    /**
     * 邮箱
     */
    @TableField("s_email")
    private String email;
    /**
     * 供应商地址
     */
    @TableField("s_address")
    private String address;
    /**
     * 负责人姓名
     */
    @TableField("s_principalName")
    private String principalName;
    /**
     * 负责人电话
     */
    @TableField("s_phone")
    private String phone;
    /**
     * 经营范围
     */
    @TableField("s_scope")
    private String scope;
    /**
     * 资质图片
     */
    @TableField("s_image")
    private String image;
    /**
     * 身份证照片
     */
    @TableField("s_identity")
    private String identity;
    /**
     * 审核状态（审核中：0；通过：1；不通过：2）
     */
    @TableField("s_status")
    private Integer status = 0;


    public SupplierBean() {
    }

    public SupplierBean(String userName, String password, String supplierName, String email, String address, String principalName, String phone, String scope, String image, String identity, Integer status) {
        this.userName = userName;
        this.password = password;
        this.supplierName = supplierName;
        this.email = email;
        this.address = address;
        this.principalName = principalName;
        this.phone = phone;
        this.scope = scope;
        this.image = image;
        this.identity = identity;
        this.status = status;
    }
}
